-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: tauri service #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8bf7bfe to
3d60d8d
Compare
ab5b95d to
cf2b28d
Compare
af97888 to
4ca7cad
Compare
4ca7cad to
90798e8
Compare
49660f5 to
6b5baa7
Compare
- Add debug logging to write_file Rust command to see received parameters - Add debug logging to JavaScript execute function to see sent parameters - Fix test to pass all required parameters (including null for optional) - This will help identify if the issue is in parameter serialization/deserialization
fd3a59a to
1e45eb7
Compare
1e45eb7 to
157ff55
Compare
- Add utility functions to extract instance ID from capabilities args - Generate unique data directories per multiremote instance (browserA, browserB, etc.) - Set XDG_DATA_HOME (Linux) or TAURI_DATA_DIR (Windows) environment variables - Remove manual environment variable configuration from WDIO config - Service automatically handles isolation without user configuration This should resolve SQLite database locking issues on Linux when running multiple Tauri webview instances in multiremote mode.
e67c4b0 to
fdae90d
Compare
- Fix onWorkerStart to properly handle multiremote capabilities object structure
- Multiremote caps are { browserA: { capabilities: {...} }, browserB: { capabilities: {...} } }
- Extract first instance capabilities and detect instance ID correctly
- This should now properly trigger data directory isolation for multiremote instances
The previous logic was trying to access tauri:options directly on the multiremote
object instead of drilling down to the individual instance capabilities.
…nheritance - Move setupDataDirectoryIsolation() call to onPrepare() before startTauriDriver() - This ensures tauri-driver inherits XDG_DATA_HOME/TAURI_DATA_DIR environment variables - Previously, isolation was set in onWorkerStart() after tauri-driver was already spawned - Now tauri-driver gets the correct environment variables from the start - This should resolve the SQLite database locking issues on Linux The key insight: tauri-driver is spawned in onPrepare, so environment variables must be set before that point, not in onWorkerStart.
…nces - Add support for spawning separate tauri-driver processes per multiremote instance - Each instance gets its own tauri-driver with instance-specific environment variables - Use different ports for each instance (4444 + instance number) - Track multiple processes in tauriDriverProcesses Map - Update stopTauriDriver to clean up all instance-specific processes This should resolve the SQLite database locking issue by ensuring each multiremote instance has its own isolated tauri-driver process with separate XDG_DATA_HOME directories.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #14
TODO: